<?php

/**
 * dynamic actions.
 *
 * @package    Moncada
 * @subpackage dynamic
 * @author     Federico Motta - Andrea Burza
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class dynamicActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeCompany(sfWebRequest $request)
  {
	$culture=$this->getUser()->getCulture();
    $this->company = Doctrine_Core::getTable('Messaggi')->getSelected(1,$culture);
  }
  public function executeConciergerie(sfWebRequest $request)
  {
	$culture=$this->getUser()->getCulture();
    $this->conciergerie = Doctrine_Core::getTable('Messaggi')->getSelected(4,$culture);
    $this->links = Doctrine_Core::getTable('Link')->getAll();
  }
  public function executeContact(sfWebRequest $request)
  {
	$culture=$this->getUser()->getCulture();
    $this->contact = Doctrine_Core::getTable('Messaggi')->getSelected(3,$culture);
    $this->eployees = Doctrine_Core::getTable('Contatti')->getAll();
    
  }
  public function executeManagement(){}
}
